<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="Cache-Control" content="no-cache, no-store"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="shortcut icon" href="/resource/images/logo.ico" type="image/x-icon"/>
    <title>大搜车-招聘管理后台</title>
    <link rel="stylesheet" type="text/css" href="/resource/css/font-awesome.css"/>
    <link rel="stylesheet" type="text/css" href="/resource/css/easyui.css">
    <link rel="stylesheet" type="text/css" href="/resource/css/icon.css">
    <link rel="stylesheet" type="text/css" href="/resource/css/custom.css">
    <link rel="stylesheet" type="text/css" href="/resource/js/datepicker/datepicker.css"/>
    <script type="text/javascript" src="/resource/js/core/jquery.js"></script>
    <script type="text/javascript" src="/resource/js/core/jquery.easyui.153.js"></script>
    <script type="text/javascript" src="/resource/js/core/common.js"></script>
    <script type="text/javascript" src="/resource/js/core/toolkit.js"></script>
    <script type="text/javascript" src="/resource/js/core/validate.js"></script>
    <script type="text/javascript" src="/resource/js/core/jquery.upload.js"></script>
    <script type="text/javascript" src="/resource/js/datepicker/datepicker.js"></script>
    <script type="text/javascript" src="/resource/js/work/addEmployee.js"></script>
    <script type="text/javascript" src="/resource/js/work/job.js"></script>
    <script type="text/javascript" src="/resource/js/work/user.js"></script>
    <script type="text/javascript" src="/resource/js/work/employee.js"></script>
    <script type="text/javascript">
        var PageParams = {
            domMain: null,
            domMenu: null,
            sorName: '',
            sortOrder: true,
            resizeChartTimer: null
        };
        $(document).ready(function () {
            PageParams.domMain = $("#div_main");
            PageParams.domMenu = $("#div_menu");
            $("#lb_account").html(window.localStorage.getItem("adminName"));
            initActions();
            initData();
        });

        initData = function () {
            var dom_table = $("#todo_table");
            dom_table.datagrid({
                onSortColumn: function (sort, order) {
                    PageParams.sortName = sort;
                    PageParams.sortOrder = true ? (order == "asc") : false;
                    // owner.getPage(1);
                }
            }).datagrid("getPager").pagination({
                layout: ["list", "sep", "first", "prev", "sep", "manual", "sep", "next", "last", "refresh", "sep"],
                pageList: [10, 20, 50, 100],
                pageSize: 20
            });
        };

        initActions = function () {
//            PageParams.domMenu.delegate("a", "click", function () {
//                if ($(this).hasClass("on")) {
//                    return;
//                }
//                PageParams.domMenu.find("a.on").removeClass("on").css({
//                    "color": "#FF571A"
//                }, 500);
//                $(this).addClass("on");
//            });
        };

        initMenu = function () {

        };

        loadPage = function (name, url) {
            if (PageParams.domMain.tabs("exists", name)) {
                PageParams.domMain.tabs("select", name);
            } else {
                PageParams.domMain.tabs("add", {
                    title: name,
                    href: url,
                    closable: true,
                    onSelect: function (title) {
                        $('#div_menu').accordion("select", title);
                    }
                });
            }
        };


        showUserInfo = function () {
            $("#main_div_info").window("open").window("hcenter");
            $("#main_info_adminName").html(window.localStorage.getItem("adminName"));
            $("#main_info_adminTypeName").html(window.localStorage.getItem("adminRoleName"));
            $("#main_info_areaName").html(window.localStorage.getItem("adminAreaName"));
            $("#main_info_companyName").html(window.localStorage.getItem("adminCompanyName"));
            $("#main_info_adminDesc").html(window.localStorage.getItem("adminDesc"));
            $("#main_info_adminNowIp").html(window.localStorage.getItem("adminNowIp"));
            $("#main_info_adminLastIp").html(window.localStorage.getItem("adminLastIp"));
            $("#main_info_adminLastTime").html(window.localStorage.getItem("adminLastTime"));
            $("#main_info_adminAddTime").html(window.localStorage.getItem("adminAddTime"));
        };

        logout = function () {
            $.ajax({
                type: "get",
                url: "/logout?t=" + new Date().getTime(),
                dataType: "json",
                data: {}
            }).done(function (result) {
                if (result.isTrue) {
                    window.location.href = "/login";
                } else {
                    $.messager.alert('提示信息', result.message);
                }
            }).fail(function () {
                $.messager.alert('提示信息', "网络繁忙，请稍后再试！");
            });
        };
    </script>
</head>
<body class="easyui-layout">
<div data-options="region:'north'" style="height:50px">
    <div class="div_top_right">
        <span><i class="fa-user"></i><a id="lb_account" href="javascript:showUserInfo();"></a></span>
        <span><i class="fa-sign-out"></i><a href="javascript:logout();">退出</a></span>
    </div>
    <div style="font-size: 24px; margin-left: 10px;">
        <img alt="大搜车-招聘管理后台" src="resource/images/logo.png" style="height: 40px; vertical-align: sub;"/>
        大搜车-招聘管理后台
    </div>
</div>
<div data-options="region:'west'" style="width:160px;">
    <div id="div_menu" class="easyui-accordion" data-options="fit:true,border:false">
        <div title="快捷操作" class="div_menu" data-options="collapsed:false,collapsible:false">
            <a class="easyui-linkbutton" onclick="loadPage('添加简历', '/work/addEmployee');" style="width:100%; margin: 2px 0;background: #B0C4DE;"><i
                    class="fa-user-circle-o"></i>添加简历</a>
        </div>
        <div title="业务相关" class="div_menu" data-options="collapsed:false">
            <a href="javascript:loadPage('简历管理', '/work/employee');"><i class="fa-arrow-circle-o-right"></i>简历管理</a>
            <a href="javascript:loadPage('职位管理', '/work/job');"><i class="fa-id-badge"></i>职位管理</a>
            <a href="javascript:loadPage('部门管理', '/work/department');"><i class="fa-arrow-circle-o-right"></i>部门管理</a>
            <a href="javascript:loadPage('/business/adinfo');"><i class="fa-arrow-circle-o-right"></i>职级调整</a>
            <a href="javascript:loadPage('/business/station');"><i class="fa-arrow-circle-o-right"></i>跟进记录</a>
        </div>
        <div title="系统相关" class="div_menu">
            <a href="javascript:loadPage('账户管理', '/work/user');">账户管理</a>
            <a href="javascript:loadPage('/system/area');">标签管理</a>
            <a href="javascript:loadPage('/system/oplog');">操作日志管理</a>
        </div>
    </div>
</div>
<div data-options="region:'center'" style="border-width: 1px;">
    <div id="div_main" class="easyui-tabs" data-options="tabHeight:25, fit:true, border:false">
        <div id="main_div_todo" title="待面试概览" data-options="iconCls:'icon-todo'" style="padding: 5px; text-align: left;">
            <table id="todo_table"
                   data-options="border:false, rownumbers:true, fit:true, fitColumns:true, loadMsg:'正在加载...',
				        pagination:true, pagePosition:'top', sortName:'addTime', sortOrder:'desc'">
                <thead>
                <tr>
                    <th data-options="field:'ck',checkbox:true"></th>
                    <th data-options="field:'itemId', align:'center'">序号</th>
                    <th data-options="field:'name', align:'center', sortable:true">候选人</th>
                    <th data-options="field:'job', align:'center'">匹配岗位</th>
                    <th data-options="field:'interviewTime', align:'center', sortable:true">面试时间</th>
                    <th data-options="field:'interviewType', align:'center'">面试方式</th>
                    <th data-options="field:'workAge', align:'center'">工作年限</th>
                    <th data-options="field:'interview1', align:'center', sortable:true">一面试官</th>
                    <th data-options="field:'address', align:'center', sortable:true">二面试官</th>
                    <th data-options="field:'zipcode', align:'center', width:400">备注</th>
                </tr>
                </thead>
            </table>
        </div>
    </div>
</div>
<div data-options="region:'south', border:false" style="height:18px; text-align: center; line-height: 18px;">@copyright souche</div>


<div id="main_div_info" class="easyui-window" title="账号信息" style="width:350px;height:280px;padding:5px;"
     data-options="iconCls:'icon-info',modal:true,top:0,collapsible:false,minimizable:false,maximizable:true,closed:true">
    <div class="easyui-layout" data-options="fit:true,border:false">
        <div class="div_window_content" data-options="region:'center',border:false">
            <div class="line tight"><label class="middle">当前登录账号</label>
                <span id="main_info_adminName" class="text"></span></div>
            <div class="line tight"><label class="middle">当前账号角色</label>
                <span id="main_info_adminTypeName" class="text"></span></div>
            <div class="line tight"><label class="middle">账号所属区域</label>
                <span id="main_info_areaName" class="text"></span></div>
            <div class="line tight"><label class="middle">账号所在公司</label>
                <span id="main_info_companyName" class="text"></span></div>
            <div class="line tight"><label class="middle">当前账号描述</label>
                <span id="main_info_adminDesc" class="text"></span></div>
            <div class="line tight"><label class="middle">当前登录地址</label>
                <span id="main_info_adminNowIp" class="text"></span></div>
            <div class="line tight"><label class="middle">上次登录地址</label>
                <span id="main_info_adminLastIp" class="text"></span></div>
            <div class="line tight"><label class="middle">上次登录时间</label>
                <span id="main_info_adminLastTime" class="text"></span></div>
            <div class="line tight"><label class="middle">账号创建时间</label>
                <span id="main_info_adminAddTime" class="text"></span></div>
        </div>
    </div>
</div>

</body>
</html>







